package org.androidpn.server.dao;

import org.androidpn.server.model.ChatMessage;
import org.androidpn.server.model.User;
import org.androidpn.server.service.ChatMsgNotFoundException;

import java.util.List;

/**
 * Created by huang on 2017/4/20 0020.
 */
public interface ChatMsgDao {

    public void saveChatMessage(ChatMessage chatMessage);

    public List<ChatMessage> findChatMessageByToUser(String toUserId);

    public void deleteChatMessage(ChatMessage chatMessage);

    public void deleteChatMessageByUUID(String uuid);

    public ChatMessage getChatMessageByUuid(String uuid) throws ChatMsgNotFoundException;
}
